class Pyramid
{
		int i,j;
		void draw(){
		for(i=0;i<5;i++)
		{
			if(i==1)
				continue;
			for(j=0;j<i;j++)
			{
				System.out.print(" ");
			}
			for(j=5-i;j>0;j--)
			{
				System.out.print(" * ");
			}
			System.out.println("");

		}
	for(i=0;i<5;i++)
	{
		if(i==3)
			continue;
		for(int k=4;k>i;k--)
		{
			System.out.print(" ");
		}
		for(j=0;j<=i;j++)
		{
			System.out.print(" * ");
		}
		System.out.print("\n");

		}

		}
}
public class Study
{
	public static void main(String arg[])
	{
		Pyramid ob = new Pyramid();
		ob.draw();
	}
}